public class MathTest extends Processor {

    static int a, b, c, d, e;
    static long aa, bb, cc, dd, ee;

    public static void main(String[] args) {
	int[] i_tbl = new int[9];
	d = 9;
	cc = 5774L;
	aa = cc*d;
	bb = 23903L << 1;

	_setMemory(0x88, 6);

	_delay(44);

	stop(); 
	// the simulator should show hex mumbers 'ca fe ba be' 
	// starting from the address 0x17.
	
	ee = 32620;
	a = 7;
	aa = ee/a;

	cc = 11111;
	dd = 54235;
	bb = (dd + 1234) % (44444 - cc);

	stop();
	// the simulator should show hex mumbers '12 34 56 78' 
	// starting from the address 0x17.
	    
	a = 1;
	i_tbl[0] = a << 0;
	i_tbl[1] = a << 1;
	i_tbl[2] = a << 2;
	i_tbl[3] = a << 3;
	i_tbl[4] = a << 4;
	i_tbl[5] = a << 5;
	i_tbl[6] = a << 6;
	i_tbl[7] = a << 7;
	i_tbl[8] = a << 8;

	stop();

	a = 0x80;
	i_tbl[0] = a >> 0;
	i_tbl[1] = a >> 1;
	i_tbl[2] = a >> 2;
	i_tbl[3] = a >> 3;
	i_tbl[4] = a >> 4;
	i_tbl[5] = a >> 5;
	i_tbl[6] = a >> 6;
	i_tbl[7] = a >> 7;
	i_tbl[8] = a >> 8;

	stop();

	a = 1;
	for (int i = 0; i < 9; i++) {
	    i_tbl[i] = a << i;
	}

	stop();
	
	a = 0x80;
	for (int i = 0; i < 9; i++) {
	    i_tbl[i] = a >> i;
	}

	stop();
	
	for (;;) ;
    }

    static void stop() {
    }
}
